900
How do I get sorted the column as string, numeric, date, date and time. Also how can it be applied to drop down filter panel

Dim h
With Exgantt1
	.BeginUpdate()
	.Chart.set_PaneWidth(True,0)
	With .Columns.Add("Date")
		.SortType = exontrol.EXGANTTLib.SortTypeEnum.SortDate
		.DisplayFilterButton = True
		.DisplayFilterPattern = False
		.DisplayFilterDate = True
		.FilterList = exontrol.EXGANTTLib.FilterListEnum.exShowFocusItem Or exontrol.EXGANTTLib.FilterListEnum.exShowCheckBox Or exontrol.EXGANTTLib.FilterListEnum.exSortItemsDesc
	End With
	With .Columns.Add("DateTime")
		.SortType = exontrol.EXGANTTLib.SortTypeEnum.SortDateTime
		.DisplayFilterButton = True
		.DisplayFilterPattern = False
		.FilterList = exontrol.EXGANTTLib.FilterListEnum.exShowFocusItem Or exontrol.EXGANTTLib.FilterListEnum.exShowCheckBox Or exontrol.EXGANTTLib.FilterListEnum.exSortItemsDesc
	End With
	With .Columns.Add("Time")
		.SortType = exontrol.EXGANTTLib.SortTypeEnum.SortTime
		.DisplayFilterButton = True
		.DisplayFilterPattern = False
		.FilterList = exontrol.EXGANTTLib.FilterListEnum.exShowFocusItem Or exontrol.EXGANTTLib.FilterListEnum.exShowCheckBox Or exontrol.EXGANTTLib.FilterListEnum.exSortItemsDesc
		.FormatColumn = "time(value)"
	End With
	With .Columns.Add("Numeric")
		.SortType = exontrol.EXGANTTLib.SortTypeEnum.SortNumeric
		.DisplayFilterButton = True
		.FilterList = exontrol.EXGANTTLib.FilterListEnum.exShowFocusItem Or exontrol.EXGANTTLib.FilterListEnum.exShowCheckBox Or exontrol.EXGANTTLib.FilterListEnum.exSortItemsDesc
	End With
	With .Columns.Add("String")
		.DisplayFilterButton = True
		.FilterList = exontrol.EXGANTTLib.FilterListEnum.exShowFocusItem Or exontrol.EXGANTTLib.FilterListEnum.exShowCheckBox Or exontrol.EXGANTTLib.FilterListEnum.exSortItemsDesc
	End With
	With .Items
		h = .AddItem(#1/27/2010#)
		.set_CellCaption(h,1,#1/27/2010 10:00:00 AM#)
		.set_CellCaption(h,2,.get_CellCaption(h,1))
		.set_CellCaption(h,3,1)
		.set_CellCaption(h,4,.get_CellCaption(h,3))
		h = .AddItem(#1/27/2011#)
		.set_CellCaption(h,1,#1/27/2011 9:00:00 AM#)
		.set_CellCaption(h,2,.get_CellCaption(h,1))
		.set_CellCaption(h,3,11)
		.set_CellCaption(h,4,.get_CellCaption(h,3))
		h = .AddItem(#11/2/2010#)
		.set_CellCaption(h,1,#11/2/2010 9:00:00 AM#)
		.set_CellCaption(h,2,.get_CellCaption(h,1))
		.set_CellCaption(h,3,2)
		.set_CellCaption(h,4,.get_CellCaption(h,3))
	End With
	.Columns.Item("DateTime").DisplayFilterDate = False
	.EndUpdate()
End With
899
I am using Layout property to sort multiple columns at once. The problem is that all items get expanded. How do I prevent that

Dim h
With Exgantt1
	.BeginUpdate()
	.LinesAtRoot = exontrol.EXGANTTLib.LinesAtRootEnum.exLinesAtRoot
	With .Columns.Add("P1")
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellHasCheckBox,True)
		.PartialCheck = True
	End With
	With .Columns.Add("P2")
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellHasCheckBox,True)
		.PartialCheck = True
		.FormatColumn = "1 index ``"
	End With
	With .Items
		h = .AddItem("Root")
		.InsertItem(h,Nothing,"Child A")
		.InsertItem(h,Nothing,"Child B")
		.InsertItem(h,Nothing,"Child A")
		.InsertItem(h,Nothing,"Child B")
		.AddItem("Root")
		.AddItem("Root")
	End With
	.SingleSort = False
	.Layout = "multiplesort=""C0:1 C1:2"";collapse="""""
	.EndUpdate()
End With
898
How can I get ride / hide the image being dragged by OLE Drag and Drop
// OLEStartDrag event is not supported. Use the DragEnter,DragLeave,DragOver, DragDrop ... events.
Dim h
With Exgantt1
	.OLEDropMode = exontrol.EXGANTTLib.exOLEDropModeEnum.exOLEDropManual
	.set_Background(exontrol.EXGANTTLib.BackgroundPartEnum.exDragDropAfter,Color.FromArgb(255,255,255))
	.LinesAtRoot = exontrol.EXGANTTLib.LinesAtRootEnum.exLinesAtRoot
	.Columns.Add("Default")
	With .Items
		h = .AddItem("Root")
		.InsertItem(h,Nothing,"Child 1")
		.InsertItem(h,Nothing,"Child 2")
		.set_ExpandItem(h,True)
	End With
End With
897
I'm trying to use automatic numbering of the outline. How can I have A, B, C for root items, 1, 2, 3 for the sub-items, and a, b, c for sub-sub-items (sample 3)

Dim h,hChild
With Exgantt1
	.BeginUpdate()
	.LinesAtRoot = exontrol.EXGANTTLib.LinesAtRootEnum.exLinesAtRoot
	.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exRowLines
	.AutoDrag = exontrol.EXGANTTLib.AutoDragEnum.exAutoDragPositionAny
	.HasLines = exontrol.EXGANTTLib.HierarchyLineEnum.exSolidLine
	.Indent = 16
	.MarkSearchColumn = False
	With .Columns
		With .Add("")
			.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellCaptionFormat,1)
			.FormatColumn = "((1:=(0 :=(1 rpos '.|A-Z||a-z|')) rfind `.`) < 0 ? `<b>` + =:0 + `` :  (=:0 mid (1 + 1 + =:1) )  + `)` ) + ` ` + value"
		End With
	End With
	With .Items
		h = .AddItem("Root")
		.InsertItem(h,Nothing,"Child")
		hChild = .InsertItem(h,Nothing,"Child")
		.InsertItem(hChild,Nothing,"Child")
		.InsertItem(hChild,Nothing,"Child")
		.InsertItem(hChild,Nothing,"Child")
		.InsertItem(h,Nothing,"Child")
		.set_ExpandItem(0,True)
		h = .AddItem("Root")
		.InsertItem(h,Nothing,"Child")
		hChild = .InsertItem(h,Nothing,"Child")
		.set_CellState(hChild,0,1)
		.InsertItem(hChild,Nothing,"Child")
		.InsertItem(hChild,Nothing,"Child")
		.InsertItem(hChild,Nothing,"Child")
		.InsertItem(h,Nothing,"Child")
	End With
	.EndUpdate()
End With
896
I'm trying to use automatic numbering of the outline. How can I have A, B, C for root items, 1, 2, 3 for the sub-items, and a, b, c for sub-sub-items (sample 2)

Dim h,hChild
With Exgantt1
	.BeginUpdate()
	.LinesAtRoot = exontrol.EXGANTTLib.LinesAtRootEnum.exLinesAtRoot
	.GridLineColor = Color.FromArgb(190,190,190)
	.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exRowLines
	.AutoDrag = exontrol.EXGANTTLib.AutoDragEnum.exAutoDragPositionAny
	.HasLines = exontrol.EXGANTTLib.HierarchyLineEnum.exSolidLine
	.Indent = 16
	With .Columns
		.Add("Default")
		With .Add("")
			.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellCaptionFormat,1)
			.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellPaddingRight,4)
			.AllowSizing = False
			.Width = 36
			.Position = 0
			.FormatColumn = "(1:=(0 :=(1 rpos '.|A-Z||a-z|')) rfind `.`) < 0 ? `<b>` + =:0 : (`............` left 2 * (=:0 count `.`)) + (=:0 mid (1 + 1 + =" & _
":1) ) "
		End With
	End With
	With .Items
		h = .AddItem("Root")
		.InsertItem(h,Nothing,"Child")
		hChild = .InsertItem(h,Nothing,"Child")
		.InsertItem(hChild,Nothing,"Child")
		.InsertItem(hChild,Nothing,"Child")
		.InsertItem(hChild,Nothing,"Child")
		.InsertItem(h,Nothing,"Child")
		.set_ExpandItem(0,True)
		h = .AddItem("Root")
		.InsertItem(h,Nothing,"Child")
		hChild = .InsertItem(h,Nothing,"Child")
		.set_CellState(hChild,0,1)
		.InsertItem(hChild,Nothing,"Child")
		.InsertItem(hChild,Nothing,"Child")
		.InsertItem(hChild,Nothing,"Child")
		.InsertItem(h,Nothing,"Child")
	End With
	.EndUpdate()
End With
895
I'm trying to use automatic numbering of the outline. How can I have A, B, C for root items, 1, 2, 3 for the sub-items, and a, b, c for sub-sub-items (sample 1)

Dim h,hChild
With Exgantt1
	.BeginUpdate()
	.LinesAtRoot = exontrol.EXGANTTLib.LinesAtRootEnum.exLinesAtRoot
	.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exRowLines
	.AutoDrag = exontrol.EXGANTTLib.AutoDragEnum.exAutoDragPositionAny
	.HasLines = exontrol.EXGANTTLib.HierarchyLineEnum.exSolidLine
	.Indent = 16
	With .Columns
		.Add("Default")
		With .Add("")
			.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellCaptionFormat,1)
			.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellPaddingRight,4)
			.Alignment = exontrol.EXGANTTLib.AlignmentEnum.RightAlignment
			.AllowSizing = False
			.Width = 24
			.Position = 0
			.FormatColumn = "(1:=(0 :=(1 rpos '.|A-Z||a-z|')) rfind `.`) < 0 ? `<b>` + =:0 : `<i>` + (=:0 mid (1 + 1 + =:1) ) "
		End With
	End With
	With .Items
		h = .AddItem("Root")
		.InsertItem(h,Nothing,"Child")
		hChild = .InsertItem(h,Nothing,"Child")
		.InsertItem(hChild,Nothing,"Child")
		.InsertItem(hChild,Nothing,"Child")
		.InsertItem(hChild,Nothing,"Child")
		.InsertItem(h,Nothing,"Child")
		.set_ExpandItem(0,True)
		h = .AddItem("Root")
		.InsertItem(h,Nothing,"Child")
		hChild = .InsertItem(h,Nothing,"Child")
		.set_CellState(hChild,0,1)
		.InsertItem(hChild,Nothing,"Child")
		.InsertItem(hChild,Nothing,"Child")
		.InsertItem(hChild,Nothing,"Child")
		.InsertItem(h,Nothing,"Child")
	End With
	.EndUpdate()
End With
894
Is it possible to have a different alignment for parts of the cell's caption

Dim h
With Exgantt1
	.BeginUpdate()
	.TreeColumnIndex = -1
	.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exRowLines
	.Chart.set_PaneWidth(True,0)
	With .Columns.Add("Default")
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellHasCheckBox,True)
	End With
	With .Items
		.set_CellHAlignment(.AddItem("all-left"),0,exontrol.EXGANTTLib.AlignmentEnum.LeftAlignment)
		.set_CellHAlignment(.AddItem("all-center"),0,exontrol.EXGANTTLib.AlignmentEnum.CenterAlignment)
		.set_CellHAlignment(.AddItem("all-right"),0,exontrol.EXGANTTLib.AlignmentEnum.RightAlignment)
		h = .AddItem("left<c>center<r>right")
		.set_CellCaptionFormat(h,0,exontrol.EXGANTTLib.CaptionFormatEnum.exHTML)
	End With
	.EndUpdate()
End With
893
I have a column with Def(exCellSingleLine) property on False, word-wrapping, and I am wondering if possible to update the column's content while user is resizing it
With Exgantt1
	.BeginUpdate()
	.Chart.set_PaneWidth(True,0)
	With .Columns
		With .Add("MultipleLine")
			.Width = 32
			.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellSingleLine,False)
			.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exColumnResizeContiguously,True)
		End With
		With .Add("SingleLine")
			.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellSingleLine,False)
		End With
	End With
	With .Items
		.set_CellCaption(.AddItem("This is a bit of long text that should break the line"),1,"This is a bit of long text that should break the line")
	End With
	.EndUpdate()
End With
892
How do I sort the index column as numeric

' AddItem event - Occurs after a new Item has been inserted to Items collection.
Private Sub Exgantt1_AddItem(ByVal sender As System.Object,ByVal Item As Integer) Handles Exgantt1.AddItem
	With Exgantt1
		With .Items
			.set_CellData(Item,1,.get_ItemToIndex(Item))
		End With
	End With
End Sub

With Exgantt1
	.BeginUpdate()
	.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exAllLines
	.ColumnAutoResize = True
	.ShowFocusRect = False
	With .Columns.Add("Next")
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellPaddingLeft,4)
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exHeaderPaddingLeft,4)
	End With
	With .Columns.Add("Index")
		.AllowSizing = False
		.Width = 48
		.FormatColumn = "(((0 := (1 index ``)) mod 3) case ( default: ``; 0 : `<r><fgcolor=B0B0B0>`; 1: ``; 2 : `<c><fgcolor=808080>` )) + str(=:0)"
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellCaptionFormat,1)
		.SortType = exontrol.EXGANTTLib.SortTypeEnum.SortUserData
		.Position = 0
	End With
	With .Items
		.AddItem("Item 1")
		.AddItem("Item 2")
		.AddItem("Item 3")
		.AddItem("Item 4")
		.AddItem("Item 5")
		.AddItem("Item 6")
		.AddItem("Item 7")
		.AddItem("Item 8")
		.AddItem("Item 9")
		.AddItem("Item 10")
	End With
	.EndUpdate()
End With
891
How can I put icons/images into buttons

With Exgantt1
	.BeginUpdate()
	.ColumnAutoResize = True
	.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" & _
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" & _
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
	With .Columns.Add("C+B")
		.AllowSizing = False
		.Width = 48
		.FormatColumn = "` <img>` + ( 1 + (1 index ``) mod 3 ) + `</img> `"
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellCaptionFormat,1)
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellHasCheckBox,True)
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellHasButton,True)
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellButtonAutoWidth,True)
	End With
	.Columns.Add("")
	.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exVLines
	.DefaultItemHeight = 20
	With .Items
		.AddItem("")
		.AddItem("")
		.AddItem("")
		.AddItem("")
		.AddItem("")
		.AddItem("")
		.AddItem("")
		.AddItem("")
	End With
	.EndUpdate()
End With
890
Is it possible to have a CheckBox and Button TOGETHER on all cells in a column

' CellButtonClick event - Fired after the user clicks on the cell of button type. 
Private Sub Exgantt1_CellButtonClick(ByVal sender As System.Object,ByVal Item As Integer,ByVal ColIndex As Integer) Handles Exgantt1.CellButtonClick
	With Exgantt1
			Debug.Print( "CellButtonClick" )
		Debug.Print( Item )
	End With
End Sub

' CellStateChanged event - Fired after cell's state has been changed.
Private Sub Exgantt1_CellStateChanged(ByVal sender As System.Object,ByVal Item As Integer,ByVal ColIndex As Integer) Handles Exgantt1.CellStateChanged
	With Exgantt1
			Debug.Print( "CellStateChanged" )
		Debug.Print( Item )
	End With
End Sub

With Exgantt1
	.BeginUpdate()
	.ColumnAutoResize = True
	With .Columns.Add("")
		.AllowSizing = False
		.Width = 32
		.FormatColumn = "1 index ``"
	End With
	With .Columns.Add("Def")
		.AllowSizing = False
		.Width = 48
		.FormatColumn = "`     `"
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellHasCheckBox,True)
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellHasButton,True)
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellButtonAutoWidth,True)
	End With
	.Columns.Add("")
	With .Items
		.AddItem("")
		.AddItem("")
		.AddItem("")
		.AddItem("")
		.AddItem("")
		.AddItem("")
		.AddItem("")
		.AddItem("")
	End With
	.EndUpdate()
End With
889
Does filtering work with umlauts / accents characters
With Exgantt1
	.BeginUpdate()
	.Chart.set_PaneWidth(True,0)
	With .Columns.Add("Names")
		.DisplayFilterButton = True
		.FilterType = exontrol.EXGANTTLib.FilterTypeEnum.exPattern
	End With
	With .Items
		.AddItem("Mantel")
		.AddItem("Mechanik")
		.AddItem("Motor")
		.AddItem("Murks")
		.AddItem("Märchen")
		.AddItem("Möhren")
		.AddItem("Mühle")
		.AddItem("Sérigraphie")
	End With
	.Columns.Item(0).Filter = "*ä*"
	.ApplyFilter()
	.EndUpdate()
End With
888
Can I set the search box / filterbarprompt to invisible, so I can use my own input and *string* via VBA
Dim h0
With Exgantt1
	.BeginUpdate()
	.ColumnAutoResize = True
	.ContinueColumnScroll = False
	.MarkSearchColumn = False
	.SearchColumnIndex = 1
	.FilterBarHeight = 0
	.FilterBarPromptVisible = True
	.Chart.set_PaneWidth(True,0)
	With .Columns
		.Add("Name").Width = 96
		.Add("Title").Width = 96
		.Add("City")
	End With
	With .Items
		h0 = .AddItem("Nancy Davolio")
		.set_CellCaption(h0,1,"Sales Representative")
		.set_CellCaption(h0,2,"Seattle")
		h0 = .AddItem("Andrew Fuller")
		.set_CellCaption(h0,1,"Vice President, Sales")
		.set_CellCaption(h0,2,"Tacoma")
		.set_SelectItem(h0,True)
		h0 = .AddItem("Janet Leverling")
		.set_CellCaption(h0,1,"Sales Representative")
		.set_CellCaption(h0,2,"Kirkland")
		h0 = .AddItem("Margaret Peacock")
		.set_CellCaption(h0,1,"Sales Representative")
		.set_CellCaption(h0,2,"Redmond")
		h0 = .AddItem("Steven Buchanan")
		.set_CellCaption(h0,1,"Sales Manager")
		.set_CellCaption(h0,2,"London")
		h0 = .AddItem("Michael Suyama")
		.set_CellCaption(h0,1,"Sales Representative")
		.set_CellCaption(h0,2,"London")
		h0 = .AddItem("Robert King")
		.set_CellCaption(h0,1,"Sales Representative")
		.set_CellCaption(h0,2,"London")
		h0 = .AddItem("Laura Callahan")
		.set_CellCaption(h0,1,"Inside Sales Coordinator")
		.set_CellCaption(h0,2,"Seattle")
		h0 = .AddItem("Anne Dodsworth")
		.set_CellCaption(h0,1,"Sales Representative")
		.set_CellCaption(h0,2,"London")
	End With
	.FilterBarPromptPattern = "London"
	.EndUpdate()
End With
887
How to load a hierarchy using the control's DataSource property (Parent-ID-Relation)

' AddItem event - Occurs after a new Item has been inserted to Items collection.
Private Sub Exgantt1_AddItem(ByVal sender As System.Object,ByVal Item As Integer) Handles Exgantt1.AddItem
	With Exgantt1
		With .Items
			.SetParent(Item,.get_FindItem(.get_CellCaption(Item,"ReportsTo"),"EmployeeID"))
		End With
	End With
End Sub

Dim rs
With Exgantt1
	.BeginUpdate()
	.Chart.set_PaneWidth(True,0)
	.LinesAtRoot = exontrol.EXGANTTLib.LinesAtRootEnum.exLinesAtRoot
	.ColumnAutoResize = False
	.ContinueColumnScroll = False
	rs = New ADODB.Recordset()
	With rs
		.Open("SELECT * FROM Employees ORDER BY ReportsTo","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\SAMPLE.MDB",3,3)
	End With
	.DataSource = rs
	.Items.set_ExpandItem(0,True)
	.EndUpdate()
End With
886
The week number is not correct. What can I do

With Exgantt1
	With .Chart
		.FirstWeekDay = .LocFirstWeekDay
		.MonthNames = .LocMonthNames
		.WeekDays = .LocWeekDays
		.AMPM = .LocAMPM
		.LevelCount = 2
		.set_PaneWidth(False,0)
		.UnitScale = exontrol.EXGANTTLib.UnitEnum.exWeek
		.UnitWidth = 32
		.FirstVisibleDate = #1/1/2016#
		.WeekNumberAs = exontrol.EXGANTTLib.WeekNumberAsEnum.exISO8601WeekNumber
		.ScrollTo(.FirstVisibleDate,1)
	End With
End With
885
How can I display my logo on print/print-preview

' AddItem event - Occurs after a new Item has been inserted to Items collection.
Private Sub Exgantt1_AddItem(ByVal sender As System.Object,ByVal Item As Integer) Handles Exgantt1.AddItem
	With Exgantt1
		With .Items
			.AddBar(Item,"Task",.get_CellCaption(Item,2),.get_CellCaption(Item,4))
		End With
	End With
End Sub

Dim rs
With Exgantt1
	.BeginUpdate()
	.ColumnAutoResize = False
	.ContinueColumnScroll = False
	rs = New ADODB.Recordset()
	With rs
		.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\sample.accdb",3,3)
	End With
	.DataSource = rs
	.Chart.FirstVisibleDate = #8/4/1994#
	.EndUpdate()
	' Add 'exontrol.exprint.dll(ExPrint.dll)' reference to your project.
	With New exontrol.EXPRINTLib.exprint()
		.PageOrientation = 2
		.set_HTMLPicture("logo","c:\exontrol\images\zipdisk.gif")
		.ExtraCaption("logo","<img>logo</img>",1,1)
		.PrintExt = Exgantt1
		.Preview()
	End With
End With
884
How can I align captions of items with checkbox, with items with no checkbox

With Exgantt1
	.BeginUpdate()
	.Columns.Add("Default")
	With .Items
		.set_CellImages(.AddItem(0),0,"1")
		.set_CellHasCheckBox(.AddItem(1),0,True)
		.set_CellImages(.AddItem(2),0,"1")
	End With
	.EndUpdate()
End With
883
How do I show the chart's labels in 24-hour clock format

With Exgantt1
	With .Chart
		.set_PaneWidth(False,0)
		.FirstVisibleDate = #1/1/2001#
		.LevelCount = 3
		With .get_Level(0)
			.Label = "<%mmm%> <%d%>, <%yyyy%>"
			.Alignment = exontrol.EXGANTTLib.AlignmentEnum.exHOutside Or exontrol.EXGANTTLib.AlignmentEnum.CenterAlignment
			.Unit = exontrol.EXGANTTLib.UnitEnum.exDay
		End With
		With .get_Level(1)
			.Label = "<b><%h%>:00</b>"
			.Alignment = exontrol.EXGANTTLib.AlignmentEnum.CenterAlignment
			.Unit = exontrol.EXGANTTLib.UnitEnum.exHour
			.DrawTickLines = True
			.DrawGridLines = True
		End With
		With .get_Level(2)
			.Label = "<%nn%>"
			.Unit = exontrol.EXGANTTLib.UnitEnum.exMinute
			.Count = 15
		End With
		.ScrollTo(#1/1/2001 8:30:00 AM#,0)
	End With
End With
882
How do I show the chart's labels in 12-hour clock format

With Exgantt1
	With .Chart
		.set_PaneWidth(False,0)
		.FirstVisibleDate = #1/1/2001#
		.LevelCount = 3
		With .get_Level(0)
			.Label = "<%mmm%> <%d%>, <%yyyy%>"
			.Alignment = exontrol.EXGANTTLib.AlignmentEnum.exHOutside Or exontrol.EXGANTTLib.AlignmentEnum.CenterAlignment
			.Unit = exontrol.EXGANTTLib.UnitEnum.exDay
		End With
		With .get_Level(1)
			.Label = "<b><%h%>:00</b> <%AM/PM%>"
			.Alignment = exontrol.EXGANTTLib.AlignmentEnum.CenterAlignment
			.Unit = exontrol.EXGANTTLib.UnitEnum.exHour
			.DrawTickLines = True
			.DrawGridLines = True
		End With
		With .get_Level(2)
			.Label = "<%nn%>"
			.Unit = exontrol.EXGANTTLib.UnitEnum.exMinute
			.Count = 15
		End With
		.ScrollTo(#1/1/2001 8:30:00 AM#,0)
	End With
End With
881
The control does not ensure the item to fit the control's client area once the user clicks the cell's button or check box. What can be done
' MouseDown event - Occurs when the user presses a mouse button.
Private Sub Exgantt1_MouseDownEvent(ByVal sender As System.Object,ByVal Button As Short,ByVal Shift As Short,ByVal X As Integer,ByVal Y As Integer) Handles Exgantt1.MouseDownEvent
	' Items.EnsureVisibleItem(ItemFromPoint(-1,-1,c,hit))
End Sub

With Exgantt1
	.BeginUpdate()
	.TreeColumnIndex = -1
	.SelForeColor = .ForeColor
	With .Columns.Add("Buttons")
		.Alignment = exontrol.EXGANTTLib.AlignmentEnum.CenterAlignment
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellHasButton,True)
	End With
	With .Items
		.AddItem("Button A")
		.AddItem("Button B")
		.AddItem("Button C")
	End With
	.EndUpdate()
End With
880
Do you have any Fit-To-Page options when printing the control (W x T, Fit-To )

' AddItem event - Occurs after a new Item has been inserted to Items collection.
Private Sub Exgantt1_AddItem(ByVal sender As System.Object,ByVal Item As Integer) Handles Exgantt1.AddItem
	With Exgantt1
		With .Items
			.AddBar(Item,"Task",.get_CellCaption(Item,2),.get_CellCaption(Item,4))
		End With
	End With
End Sub

Dim rs
With Exgantt1
	.BeginUpdate()
	.ColumnAutoResize = False
	.ContinueColumnScroll = False
	rs = New ADODB.Recordset()
	With rs
		.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\sample.accdb",3,3)
	End With
	.DataSource = rs
	.Chart.FirstVisibleDate = #8/4/1994#
	.EndUpdate()
	' Add 'exontrol.exprint.dll(ExPrint.dll)' reference to your project.
	With New exontrol.EXPRINTLib.exprint()
		.Options = "FitToPage =1 x 2"
		.PrintExt = Exgantt1
		.Preview()
	End With
End With
879
Do you have any Fit-To-Page options when printing the control ( x T, Fit-To Tall )

' AddItem event - Occurs after a new Item has been inserted to Items collection.
Private Sub Exgantt1_AddItem(ByVal sender As System.Object,ByVal Item As Integer) Handles Exgantt1.AddItem
	With Exgantt1
		With .Items
			.AddBar(Item,"Task",.get_CellCaption(Item,2),.get_CellCaption(Item,4))
		End With
	End With
End Sub

Dim rs
With Exgantt1
	.BeginUpdate()
	.ColumnAutoResize = False
	.ContinueColumnScroll = False
	rs = New ADODB.Recordset()
	With rs
		.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\sample.accdb",3,3)
	End With
	.DataSource = rs
	.Chart.FirstVisibleDate = #8/4/1994#
	.EndUpdate()
	' Add 'exontrol.exprint.dll(ExPrint.dll)' reference to your project.
	With New exontrol.EXPRINTLib.exprint()
		.Options = "FitToPage = x 2"
		.PrintExt = Exgantt1
		.Preview()
	End With
End With
878
Do you have any Fit-To-Page options when printing the control ( W x, Fit-To Wide )

' AddItem event - Occurs after a new Item has been inserted to Items collection.
Private Sub Exgantt1_AddItem(ByVal sender As System.Object,ByVal Item As Integer) Handles Exgantt1.AddItem
	With Exgantt1
		With .Items
			.AddBar(Item,"Task",.get_CellCaption(Item,2),.get_CellCaption(Item,4))
		End With
	End With
End Sub

Dim rs
With Exgantt1
	.BeginUpdate()
	.ColumnAutoResize = False
	.ContinueColumnScroll = False
	rs = New ADODB.Recordset()
	With rs
		.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\sample.accdb",3,3)
	End With
	.DataSource = rs
	.Chart.FirstVisibleDate = #8/4/1994#
	.EndUpdate()
	' Add 'exontrol.exprint.dll(ExPrint.dll)' reference to your project.
	With New exontrol.EXPRINTLib.exprint()
		.Options = "FitToPage = 2 x"
		.PrintExt = Exgantt1
		.Preview()
	End With
End With
877
Do you have any Fit-To-Page options when printing the control ( percent view, Adjust-To )

' AddItem event - Occurs after a new Item has been inserted to Items collection.
Private Sub Exgantt1_AddItem(ByVal sender As System.Object,ByVal Item As Integer) Handles Exgantt1.AddItem
	With Exgantt1
		With .Items
			.AddBar(Item,"Task",.get_CellCaption(Item,2),.get_CellCaption(Item,4))
		End With
	End With
End Sub

Dim rs
With Exgantt1
	.BeginUpdate()
	.ColumnAutoResize = False
	.ContinueColumnScroll = False
	rs = New ADODB.Recordset()
	With rs
		.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\sample.accdb",3,3)
	End With
	.DataSource = rs
	.Chart.FirstVisibleDate = #8/4/1994#
	.EndUpdate()
	' Add 'exontrol.exprint.dll(ExPrint.dll)' reference to your project.
	With New exontrol.EXPRINTLib.exprint()
		.Options = "FitToPage = 50%"
		.PrintExt = Exgantt1
		.Preview()
	End With
End With
876
Does the title of the cell's tooltip supports HTML format

With Exgantt1
	.BeginUpdate()
	.Chart.set_PaneWidth(True,0)
	With .Columns.Add("")
		.Caption = ""
		.HTMLCaption = "Column"
	End With
	With .Items
		.set_CellToolTip(.AddItem("tooltip w/h different title"),0,"<c><b><fgcolor=FF0000>Title</fgcolor></b><br>This is bit of text that's shown when the user hovers the cell. This shows the tit" & _
"le centered with a different color.")
	End With
	.EndUpdate()
End With
875
How do I specify a different title for the cell's tooltip

With Exgantt1
	.BeginUpdate()
	.Chart.set_PaneWidth(True,0)
	With .Columns.Add("")
		.Caption = "This is the title"
		.HTMLCaption = "Column"
	End With
	With .Items
		.set_CellToolTip(.AddItem("tooltip w/h different title"),0,"This is bit of text that's shown when the user hovers the cell.")
	End With
	.EndUpdate()
End With
874
The cell's tooltip displays the column's caption in its title. How can I get ride of that

Dim h
With Exgantt1
	.BeginUpdate()
	.Chart.set_PaneWidth(True,0)
	With .Columns
		.Add("C1")
		.Add("C2")
	End With
	With .Items
		h = .AddItem("tooltip w/h caption")
		.set_CellToolTip(h,0,"This is bit of text that's shown when the user hovers the cell. This shows the column's caption in the title.")
		.set_CellCaption(h,1,"tooltip no caption")
		.set_CellToolTip(h,1,"This is bit of text that's shown when the user hovers the cell. This shows no column's caption in the title.")
	End With
	With .Columns.Item("C2")
		.HTMLCaption = .Caption
		.Caption = ""
	End With
	.EndUpdate()
End With
873
How can I programmatically show the column's filter

' RClick event - Fired when right mouse button is clicked
Private Sub Exgantt1_RClick(ByVal sender As System.Object) Handles Exgantt1.RClick
	Dim c,hit,i
	With Exgantt1
		i = .get_ItemFromPoint(-1,-1,c,hit)
		.Columns.Item(c).ShowFilter("-1,-1,128,128")
	End With
End Sub

With Exgantt1
	.BeginUpdate()
	.ShowFocusRect = False
	With .Columns.Add("Items ")
		.DisplayFilterPattern = False
		.FilterList = exontrol.EXGANTTLib.FilterListEnum.exShowExclude Or exontrol.EXGANTTLib.FilterListEnum.exShowFocusItem Or exontrol.EXGANTTLib.FilterListEnum.exShowCheckBox
	End With
	With .Items
		.AddItem("Item 1")
		.AddItem("Item 2")
		.AddItem("Item 3")
	End With
	.EndUpdate()
End With
872
I want to be able to click on one of the headers, and sort by other column. How can I do that (method 2)

' ColumnClick event - Fired after the user clicks on column's header.
Private Sub Exgantt1_ColumnClick(ByVal sender As System.Object,ByVal Column As exontrol.EXGANTTLib.Column) Handles Exgantt1.ColumnClick
	' Column.SortOrder = 1
	With Exgantt1
		.SortOnClick = exontrol.EXGANTTLib.SortOnClickEnum.exDefaultSort
		.Columns.Item("Sort").SortOrder = exontrol.EXGANTTLib.SortOrderEnum.SortAscending
		.SortOnClick = exontrol.EXGANTTLib.SortOnClickEnum.exUserSort
	End With
End Sub

With Exgantt1
	.BeginUpdate()
	.MarkSearchColumn = False
	.SortOnClick = exontrol.EXGANTTLib.SortOnClickEnum.exUserSort
	.Columns.Add("Items")
	.Columns.Add("Sort").Visible = False
	With .Items
		.set_CellCaption(.AddItem("Item 1 (3)"),1,3)
		.set_CellCaption(.AddItem("Item 2 (1)"),1,1)
		.set_CellCaption(.AddItem("Item 3 (2)"),1,2)
	End With
	.EndUpdate()
End With
871
I want to be able to click on one of the headers, and sort by other column. How can I do that (method 1)

' ColumnClick event - Fired after the user clicks on column's header.
Private Sub Exgantt1_ColumnClick(ByVal sender As System.Object,ByVal Column As exontrol.EXGANTTLib.Column) Handles Exgantt1.ColumnClick
	' Column.SortOrder = 1
	With Exgantt1
		.Items.SortChildren(0,"Sort",True)
	End With
End Sub

With Exgantt1
	.BeginUpdate()
	.MarkSearchColumn = False
	.SortOnClick = exontrol.EXGANTTLib.SortOnClickEnum.exUserSort
	.Columns.Add("Items")
	.Columns.Add("Sort").Visible = False
	With .Items
		.set_CellCaption(.AddItem("Item 1 (3)"),1,3)
		.set_CellCaption(.AddItem("Item 2 (1)"),1,1)
		.set_CellCaption(.AddItem("Item 3 (2)"),1,2)
	End With
	.EndUpdate()
End With
870
How can I sort by two-columns, one by date and one by time

Dim h
With Exgantt1
	.BeginUpdate()
	.SingleSort = False
	With .Columns
		.Add("Index").FormatColumn = "1 index ``"
		.Add("Date").SortType = exontrol.EXGANTTLib.SortTypeEnum.SortDate
		With .Add("Time")
			.SortType = exontrol.EXGANTTLib.SortTypeEnum.SortTime
			.FormatColumn = "time(value)"
		End With
	End With
	With .Items
		h = .AddItem(0)
		.set_CellCaption(h,1,#1/1/2001#)
		.set_CellCaption(h,2,#1/1/2001 10:00:00 AM#)
		h = .AddItem(0)
		.set_CellCaption(h,1,#12/31/2000#)
		.set_CellCaption(h,2,#1/1/2001 10:00:00 AM#)
		h = .AddItem(0)
		.set_CellCaption(h,1,#1/1/2001#)
		.set_CellCaption(h,2,#1/1/2001 6:00:00 AM#)
		h = .AddItem(0)
		.set_CellCaption(h,1,#12/31/2000#)
		.set_CellCaption(h,2,#1/1/2001 8:00:00 AM#)
		h = .AddItem(0)
		.set_CellCaption(h,1,#1/1/2001#)
		.set_CellCaption(h,2,#1/1/2001 8:00:00 AM#)
		h = .AddItem(0)
		.set_CellCaption(h,1,#12/31/2000#)
		.set_CellCaption(h,2,#1/1/2001 6:00:00 AM#)
	End With
	.Layout = "multiplesort=""C1:1 C2:1"""
	.EndUpdate()
End With
869
How can I connect to a DBF file
Dim rs
With Exgantt1
	.BeginUpdate()
	.ColumnAutoResize = False
	.ContinueColumnScroll = False
	rs = New ADODB.Recordset()
	With rs
		.Open("Select * From foxcode.DBF","Provider=vfpoledb;Data Source=C:\Program Files\Microsoft Visual FoxPro 9\",3,3)
	End With
	.DataSource = rs
	.Chart.set_PaneWidth(True,0)
	.EndUpdate()
End With
868
How can I change the bar's color based on values on the columns

' AddItem event - Occurs after a new Item has been inserted to Items collection.
Private Sub Exgantt1_AddItem(ByVal sender As System.Object,ByVal Item As Integer) Handles Exgantt1.AddItem
	With Exgantt1
		With .Items
			.AddBar(Item,"Task",.get_CellCaption(Item,2),.get_CellCaption(Item,4))
		End With
	End With
End Sub

Dim rs
With Exgantt1
	.BeginUpdate()
	With .Chart
		.FirstVisibleDate = #8/3/1994#
		.set_PaneWidth(False,256)
		.LevelCount = 2
		.UnitScale = exontrol.EXGANTTLib.UnitEnum.exDay
		.FirstWeekDay = exontrol.EXGANTTLib.WeekDayEnum.exMonday
		.OverviewVisible = exontrol.EXGANTTLib.OverviewVisibleEnum.exOverviewShowAll
	End With
	.ColumnAutoResize = False
	.ContinueColumnScroll = False
	rs = New ADODB.Recordset()
	With rs
		.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\sample.accdb",3,3)
	End With
	.DataSource = rs
	With .ConditionalFormats
		With .Add("1")
			.ApplyTo = &H1
			.Bold = True
			.BackColor = Color.FromArgb(250,250,250)
		End With
		With .Add("%1 = 5")
			.ApplyToBars = "Task"
			.BarColor = Color.FromArgb(255,0,0)
			.ForeColor = Color.FromArgb(255,0,0)
			.BarOverviewColor = Color.FromArgb(255,0,0)
		End With
		With .Add("%1 = 3")
			.ApplyToBars = "Task"
			.BarColor = Color.FromArgb(0,255,0)
			.ForeColor = Color.FromArgb(0,255,0)
			.BarOverviewColor = Color.FromArgb(0,255,0)
		End With
	End With
	.EndUpdate()
End With
867
Does your control supports scrolling by touching the screen

' AddItem event - Occurs after a new Item has been inserted to Items collection.
Private Sub Exgantt1_AddItem(ByVal sender As System.Object,ByVal Item As Integer) Handles Exgantt1.AddItem
	With Exgantt1
		With .Items
			.AddBar(Item,"Task",.get_CellCaption(Item,2),.get_CellCaption(Item,4))
		End With
	End With
End Sub

Dim rs
With Exgantt1
	.BeginUpdate()
	With .Chart
		.FirstVisibleDate = #8/3/1994#
		.set_PaneWidth(False,256)
		.LevelCount = 2
		.UnitScale = exontrol.EXGANTTLib.UnitEnum.exDay
		.FirstWeekDay = exontrol.EXGANTTLib.WeekDayEnum.exMonday
		.OverviewVisible = exontrol.EXGANTTLib.OverviewVisibleEnum.exOverviewShowAll
	End With
	.ColumnAutoResize = False
	.ContinueColumnScroll = False
	rs = New ADODB.Recordset()
	With rs
		.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\sample.accdb",3,3)
	End With
	.DataSource = rs
	.ContinueColumnScroll = True
	.ScrollBySingleLine = True
	.AutoDrag = exontrol.EXGANTTLib.AutoDragEnum.exAutoDragScrollOnShortTouch Or exontrol.EXGANTTLib.AutoDragEnum.exAutoDragScroll
	.EndUpdate()
End With
866
How can I export the control's content to a PDF document (method 1)

With Exgantt1
	.BeginUpdate()
	.MarkSearchColumn = False
	.Columns.Add("Tasks")
	With .Chart
		.set_PaneWidth(False,196)
		.LevelCount = 2
		.ShowEmptyBars = 1
		.FirstVisibleDate = #1/1/2009#
	End With
	With .Items
		.AddBar(.AddItem("Task 1"),"Task",#1/2/2009#,#1/7/2009#)
		.AddBar(.AddItem("Task 2"),"Task",#1/4/2009#,#1/9/2009#)
	End With
	' Add 'exontrol.exprint.dll(ExPrint.dll)' reference to your project.
	With New exontrol.EXPRINTLib.exprint()
		.PrintExt = Exgantt1
		.CopyTo("c:/temp/xtest.pdf")
	End With
	Debug.Print( "Look for C:\Temp\xtest.pdf file." )
	.EndUpdate()
End With
865
How can I export the control's content to a PDF document (method 2)

Dim var_CopyTo
With Exgantt1
	.BeginUpdate()
	.MarkSearchColumn = False
	.Columns.Add("Tasks")
	With .Chart
		.set_PaneWidth(False,196)
		.LevelCount = 2
		.ShowEmptyBars = 1
		.FirstVisibleDate = #1/1/2009#
	End With
	With .Items
		.AddBar(.AddItem("Task 1"),"Task",#1/2/2009#,#1/7/2009#)
		.AddBar(.AddItem("Task 2"),"Task",#1/4/2009#,#1/9/2009#)
	End With
	var_CopyTo = .get_CopyTo("c:/temp/xtest.pdf")
	Debug.Print( "Look for C:\Temp\xtest.pdf file." )
	.EndUpdate()
End With
864
Is there a syntax for conditional formatting of items, based on CellState/CellStateChange

' CellStateChanged event - Fired after cell's state has been changed.
Private Sub Exgantt1_CellStateChanged(ByVal sender As System.Object,ByVal Item As Integer,ByVal ColIndex As Integer) Handles Exgantt1.CellStateChanged
	With Exgantt1
		With .Items
			.set_CellCaption(Item,2,.get_CellState(Item,0))
		End With
	End With
End Sub

Dim h,var_ConditionalFormat
With Exgantt1
	.BeginUpdate()
	.ShowFocusRect = False
	.SelBackMode = exontrol.EXGANTTLib.BackModeEnum.exTransparent
	var_ConditionalFormat = .ConditionalFormats.Add("%2 != 0")
	With var_ConditionalFormat
		.Bold = True
		.ForeColor = Color.FromArgb(255,0,0)
		.ApplyTo = exontrol.EXGANTTLib.FormatApplyToEnum.exFormatToItems
	End With
	With .Columns.Add("")
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellHasCheckBox,True)
		.Width = 16
		.AllowSizing = False
	End With
	.Columns.Add("Information")
	.Columns.Add("Hidden").Visible = False
	With .Items
		.set_CellCaption(.AddItem(""),1,"This is a bit of text associated")
		h = .AddItem("")
		.set_CellCaption(h,1,"This is a bit of text associated")
		.set_CellState(h,0,1)
		.set_CellCaption(.AddItem(""),1,"This is a bit of text associated")
	End With
	.EndUpdate()
End With
863
How can I use no scroll bars for touch-screens

' AddItem event - Occurs after a new Item has been inserted to Items collection.
Private Sub Exgantt1_AddItem(ByVal sender As System.Object,ByVal Item As Integer) Handles Exgantt1.AddItem
	With Exgantt1
		With .Items
			.AddBar(Item,"Task",.get_CellCaption(Item,2),.get_CellCaption(Item,4))
		End With
	End With
End Sub

Dim rs
With Exgantt1
	.BeginUpdate()
	With .Chart
		.FirstVisibleDate = #8/3/1994#
		.set_PaneWidth(False,256)
		.LevelCount = 2
		.UnitScale = exontrol.EXGANTTLib.UnitEnum.exDay
		.FirstWeekDay = exontrol.EXGANTTLib.WeekDayEnum.exMonday
		.OverviewVisible = exontrol.EXGANTTLib.OverviewVisibleEnum.exOverviewShowAll
	End With
	.ColumnAutoResize = False
	.ContinueColumnScroll = False
	rs = New ADODB.Recordset()
	With rs
		.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\sample.accdb",3,3)
	End With
	.DataSource = rs
	.AutoDrag = exontrol.EXGANTTLib.AutoDragEnum.exAutoDragScroll
	.ScrollWidth = 4
	.ScrollHeight = 4
	.set_Background(exontrol.EXGANTTLib.BackgroundPartEnum.exHSLeft,Color.FromArgb(192,192,192))
	.set_Background(exontrol.EXGANTTLib.BackgroundPartEnum.exHSRight,Color.FromArgb(192,192,192))
	.set_Background(exontrol.EXGANTTLib.BackgroundPartEnum.exHSBack,Color.FromArgb(224,224,224))
	.set_Background(exontrol.EXGANTTLib.BackgroundPartEnum.exHSThumb,Color.FromArgb(128,128,128))
	.set_Background(exontrol.EXGANTTLib.BackgroundPartEnum.exVSBack,Color.FromArgb(224,224,224))
	.set_Background(exontrol.EXGANTTLib.BackgroundPartEnum.exVSDown,Color.FromArgb(192,192,192))
	.set_Background(exontrol.EXGANTTLib.BackgroundPartEnum.exVSThumb,Color.FromArgb(128,128,128))
	.set_Background(exontrol.EXGANTTLib.BackgroundPartEnum.exVSUp,Color.FromArgb(192,192,192))
	.ScrollButtonWidth = 0
	.ScrollButtonHeight = 0
	.EndUpdate()
End With
862
How can I print the selected items only

' AddItem event - Occurs after a new Item has been inserted to Items collection.
Private Sub Exgantt1_AddItem(ByVal sender As System.Object,ByVal Item As Integer) Handles Exgantt1.AddItem
	With Exgantt1
		With .Items
			.AddBar(Item,"Task",.get_CellCaption(Item,2),.get_CellCaption(Item,4))
		End With
	End With
End Sub

Dim rs
With Exgantt1
	.BeginUpdate()
	.SingleSel = False
	.ColumnAutoResize = False
	.ContinueColumnScroll = False
	rs = New ADODB.Recordset()
	With rs
		.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\sample.accdb",3,3)
	End With
	.DataSource = rs
	.Chart.FirstVisibleDate = #8/4/1994#
	With .Items
		.set_SelectItem(.get_ItemByIndex(0),True)
		.set_SelectItem(.get_ItemByIndex(2),True)
		.set_SelectItem(.get_ItemByIndex(4),True)
	End With
	.EndUpdate()
	' Add 'exontrol.exprint.dll(ExPrint.dll)' reference to your project.
	With New exontrol.EXPRINTLib.exprint()
		.Options = "Print = Selection"
		.PrintExt = Exgantt1
		.Preview()
	End With
End With
861
How can I sort the columns to be displayed on the columns floating bar

With Exgantt1
	.ColumnAutoResize = False
	With .Columns
		.Add("City").Visible = False
		.Add("Start").Visible = False
		.Add("End").Visible = False
	End With
	.ColumnsFloatBarVisible = exontrol.EXGANTTLib.ColumnsFloatBarVisibleEnum.exColumnsFloatBarVisibleIncludeHiddenColumns
	.ColumnsFloatBarSortOrder = exontrol.EXGANTTLib.SortOrderEnum.SortAscending
End With
860
How can I add a vertical padding

With Exgantt1
	.BeginUpdate()
	.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exAllLines
	With .Columns.Add("Padding")
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellHasCheckBox,True)
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellSingleLine,False)
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellPaddingLeft,6)
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellPaddingRight,6)
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellPaddingTop,6)
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellPaddingBottom,6)
	End With
	With .Items
		.AddItem("padding")
		.AddItem("padding")
	End With
	.EndUpdate()
End With
859
How do you embed HTML options into the anchor click string

' AnchorClick event - Occurs when an anchor element is clicked.
Private Sub Exgantt1_AnchorClick(ByVal sender As System.Object,ByVal AnchorID As String,ByVal Options As String) Handles Exgantt1.AnchorClick
	With Exgantt1
		Debug.Print( AnchorID )
		Debug.Print( Options )
	End With
End Sub

With Exgantt1
	.BeginUpdate()
	With .Columns
		.Add("Car").set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellCaptionFormat,1)
	End With
	With .Items
		.AddItem("<a mazda_1;options for 1>Mazda <b>1</b></a>")
		.AddItem("<a mazda_2;options for 2>Mazda <b>2</b></a>")
		.AddItem("<a mazda_3;options for 3a>Mazda <b>3.a</b></a>")
		.AddItem("<a mazda_3;options for 3b>Mazda <b>3.b</b></a>")
	End With
	.EndUpdate()
End With
858
I have the rows with different background color, and when I select the item it takes the color of the SelBackColor, and therefore is no longer visible behind the color. Is there any option to make the item's color being visible (method 3)

With Exgantt1
	.BeginUpdate()
	.VisualAppearance.Add(1,"gBFLBCJwBAEHhEJAEGg4BVEIQAAYAQGKIYBkAKBQAGaAoDDMOQwQwAAxjGKEEwsACEIrjKCRShyCYZRhGcTSBCIZBqEqSZLiEZRQCWIAzATGYBRfIUEgjBM6ExwG78e" & _
"gBHp/ZpkACIJJAaRjHQdJxGKKMQB9DIhCZpeKhWgkKIJBzOEyBRC4ERBGqNGrsIgLEqWZpnWhaNpWXYTLyBN64LhuK46g53O6wLxvK6hEr2dJ/YBcIAOfghf4NQ7EMRx" & _
"LC8Mw3BDvYDkOAABAIgI=")
	.SelBackColor32 = &H1fffffe
	.ShowFocusRect = False
	.Columns.Add("Items")
	With .Items
		.set_ItemBackColor(.AddItem("red"),Color.FromArgb(255,0,0))
		.set_ItemBackColor(.AddItem("blue"),Color.FromArgb(0,0,255))
		.set_ItemBackColor(.AddItem("green"),Color.FromArgb(0,255,0))
	End With
	.EndUpdate()
End With
857
I have the rows with different background color, and when I select the item it takes the color of the SelBackColor, and therefore is no longer visible behind the color. Is there any option to make the item's color being visible (method 2)

With Exgantt1
	.BeginUpdate()
	.SelBackMode = exontrol.EXGANTTLib.BackModeEnum.exTransparent
	.ShowFocusRect = False
	.Columns.Add("Items")
	With .Items
		.set_ItemBackColor(.AddItem("red"),Color.FromArgb(255,0,0))
		.set_ItemBackColor(.AddItem("blue"),Color.FromArgb(0,0,255))
		.set_ItemBackColor(.AddItem("green"),Color.FromArgb(0,255,0))
	End With
	.EndUpdate()
End With
856
I have the rows with different background color, and when I select the item it takes the color of the SelBackColor, and therefore is no longer visible behind the color. Is there any option to make the item's color being visible (method 1)

With Exgantt1
	.BeginUpdate()
	.SelBackColor = .BackColor
	.SelForeColor = .ForeColor
	.ShowFocusRect = True
	.Columns.Add("Items")
	With .Items
		.set_ItemBackColor(.AddItem("red"),Color.FromArgb(255,0,0))
		.set_ItemBackColor(.AddItem("blue"),Color.FromArgb(0,0,255))
		.set_ItemBackColor(.AddItem("green"),Color.FromArgb(0,255,0))
	End With
	.EndUpdate()
End With
855
Do you have any Fit-To-Page options when printing the control

' AddItem event - Occurs after a new Item has been inserted to Items collection.
Private Sub Exgantt1_AddItem(ByVal sender As System.Object,ByVal Item As Integer) Handles Exgantt1.AddItem
	With Exgantt1
		With .Items
			.AddBar(Item,"Task",.get_CellCaption(Item,2),.get_CellCaption(Item,4))
		End With
	End With
End Sub

Dim rs
With Exgantt1
	.BeginUpdate()
	.ColumnAutoResize = False
	.ContinueColumnScroll = False
	rs = New ADODB.Recordset()
	With rs
		.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\sample.accdb",3,3)
	End With
	.DataSource = rs
	.Chart.FirstVisibleDate = #8/4/1994#
	.EndUpdate()
	' Add 'exontrol.exprint.dll(ExPrint.dll)' reference to your project.
	With New exontrol.EXPRINTLib.exprint()
		.Options = "FitToPage = On"
		.PrintExt = Exgantt1
		.Preview()
	End With
End With
854
How can I add a footer row

Dim h
With Exgantt1
	.ShowLockedItems = True
	.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exVLines
	.Columns.Add("C1")
	.Columns.Add("C2")
	With .Items
		.set_LockedItemCount(exontrol.EXGANTTLib.VAlignmentEnum.BottomAlignment,1)
		h = .get_LockedItem(exontrol.EXGANTTLib.VAlignmentEnum.BottomAlignment,0)
		.set_ItemBackColor(h,Color.FromArgb(128,128,128))
		.set_ItemForeColor(h,Color.FromArgb(255,255,255))
		.set_CellCaption(h,0,"footer c1")
		.set_CellCaption(h,1,"footer c2")
		.set_CellCaption(.AddItem("cell"),1,"cell")
	End With
End With
853
How can I add a header row

Dim h
With Exgantt1
	.ShowLockedItems = True
	.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exVLines
	.Columns.Add("C1")
	.Columns.Add("C2")
	With .Items
		.set_LockedItemCount(exontrol.EXGANTTLib.VAlignmentEnum.TopAlignment,1)
		h = .get_LockedItem(exontrol.EXGANTTLib.VAlignmentEnum.TopAlignment,0)
		.set_ItemBackColor(h,Color.FromArgb(128,128,128))
		.set_ItemForeColor(h,Color.FromArgb(255,255,255))
		.set_CellCaption(h,0,"footer c1")
		.set_CellCaption(h,1,"footer c2")
		.set_CellCaption(.AddItem("cell"),1,"cell")
	End With
End With
852
How can I programmatically add more columns to the sort bar and other to be sorted, but not included in the sort bar

With Exgantt1
	.SortBarVisible = True
	With .Columns
		.Add(0)
		.Add(1)
		.Add(2)
		.Add(3)
		.Add(4)
	End With
	.Layout = "multiplesort=""C3:1 C4:2"";singlesort=""C2:1"""
End With
851
How can I fix a column, while other sizable and fill the control's client
With Exgantt1
	.ColumnAutoResize = True
	.Columns.Add("Sizable")
	With .Columns.Add("F")
		.AllowSizing = False
		.Width = 16
	End With
End With
850
When I'm trying to show string with "line break" character (vbCrLF) in a textbox, it shows 2 squares. Is there any way to hide these squares

With Exgantt1
	With .Columns
		.Add("Value")
		With .Add("CellSingleLine = False")
			.ComputedField = "%0"
			.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellSingleLine,False)
		End With
		With .Add("FormatColumn/replace CRLF")
			.ComputedField = "%0"
			.FormatColumn = "value replace `\r\n` with ``"
		End With
		With .Add("FormatColumn/replace TAB,CRLF")
			.ComputedField = "%0"
			.FormatColumn = "(value replace `\t` with ``) replace `\r\n` with ``"
		End With
	End With
	With .Items
		.AddItem("a\ta\r\nb\tb")
	End With
End With
849
Is there any way to "unselect" radio group

' DblClick event - Occurs when the user dblclk the left mouse button over an object.
Private Sub Exgantt1_DblClick(ByVal sender As System.Object,ByVal Shift As Short,ByVal X As Integer,ByVal Y As Integer) Handles Exgantt1.DblClick
	Dim h
	With Exgantt1
		With .Items
			h = .get_CellChecked(1234)
			.set_CellHasCheckBox(0,h,True)
			.set_CellState(0,h,0)
			.set_CellHasCheckBox(0,h,False)
		End With
	End With
End Sub

' SelectionChanged event - Fired after a new item has been selected.
Private Sub Exgantt1_SelectionChanged(ByVal sender As System.Object) Handles Exgantt1.SelectionChanged
	With Exgantt1
		With .Items
			.set_CellState(.FocusItem,0,1)
		End With
	End With
End Sub

Dim h
With Exgantt1
	.MarkSearchColumn = False
	.SelBackColor = Color.FromArgb(255,255,128)
	.SelForeColor = Color.FromArgb(0,0,0)
	.Columns.Add("Default")
	With .Items
		h = .AddItem("Radio 1")
		.set_CellHasRadioButton(h,0,True)
		.set_CellRadioGroup(h,0,1234)
		h = .AddItem("Radio 2")
		.set_CellHasRadioButton(h,0,True)
		.set_CellRadioGroup(h,0,1234)
		.set_CellState(h,0,1)
		h = .AddItem("Radio 3")
		.set_CellHasRadioButton(h,0,True)
		.set_CellRadioGroup(h,0,1234)
	End With
End With
848
The Column.Alignment property does not seem to work for cells with images in them. What can be done

With Exgantt1
	.BeginUpdate()
	.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" & _
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" & _
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
	.TreeColumnIndex = -1
	.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exAllLines
	.HeaderHeight = 24
	.DefaultItemHeight = 24
	With .Columns.Add("Image")
		.AllowSizing = False
		.Width = 32
		.HTMLCaption = "<img>1</img>"
		.HeaderAlignment = exontrol.EXGANTTLib.AlignmentEnum.CenterAlignment
		.Alignment = exontrol.EXGANTTLib.AlignmentEnum.CenterAlignment
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellCaptionFormat,1)
	End With
	.Columns.Add("Rest")
	With .Items
		.AddItem("<img>1</img>")
		.AddItem("<img>2</img>")
		.AddItem("<img>3</img>")
	End With
	.EndUpdate()
End With
847
Does your control support subscript or superscript, in HTML captions

Dim h
With Exgantt1
	With .Chart
		.FirstVisibleDate = #1/1/2001#
		.set_PaneWidth(False,64)
	End With
	.Columns.Add("Column")
	With .Items
		h = .AddItem("Item 1")
		.AddBar(h,"Task",#1/2/2001#,#1/4/2001#,"")
		.set_ItemBar(h,"",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarCaption,"<sha ;;0>Event <b><font ;6><off -6>2<off 4>3<off 4>1")
		.set_ItemBar(h,"",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18)
	End With
End With
846
How do I arrange my columns on multiple levels

With Exgantt1
	.BeginUpdate()
	.ColumnAutoResize = False
	.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exAllLines
	With .Columns
		With .Add("C0")
			.ExpandColumns = "1,2"
			.DisplayExpandButton = False
		End With
		.Add("C1")
		.Add("C2")
		.Add("C3")
		With .Add("C4")
			.ExpandColumns = "5,6"
			.DisplayExpandButton = False
		End With
		.Add("C5")
		With .Add("C6")
			.ExpandColumns = "6,7"
			.DisplayExpandButton = False
		End With
		.Add("C7")
	End With
	.EndUpdate()
End With
845
Does your control support expandable header or columns, so I can arrange it on multiple levels

With Exgantt1
	.BeginUpdate()
	.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exAllLines
	.BackColorLevelHeader = Color.FromArgb(240,240,240)
	With .Columns
		With .Add("Photo")
			.AllowSizing = False
			.Width = 32
		End With
		.Add("Personal Info")
		.Add("Title")
		.Add("Name")
		.Add("First")
		.Add("Last")
		.Add("Address")
		.Item("Personal Info").ExpandColumns = "2,3"
		With .Item("Name")
			.ExpandColumns = "4,5"
			.Expanded = False
		End With
	End With
	.EndUpdate()
End With
844
Can I change the format of date to be shown in the control

With Exgantt1
	.Chart.set_PaneWidth(True,0)
	With .Columns
		.Add("Default")
		With .Add("Format.1")
			.ComputedField = "%0"
			.FormatColumn = "dateF(value) replace `/` with `-`"
		End With
		With .Add("Format.2")
			.ComputedField = "%0"
			.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellCaptionFormat,1)
			.FormatColumn = "`<b>`+ shortdate(value) + `</b> ` + timeF(value)"
		End With
		With .Add("Format.3")
			.ComputedField = "%0"
			.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellCaptionFormat,1)
			.FormatColumn = "` <b>`+ ( weekday(value) case ( 0 : `Su`; 1 : `Mo`; 2 : `Tu`; 3 : `We`; 4 : `Th`; 5 : `Fr`; 6 : `Sa`) ) + `</b> ` + ( dateF(val" & _
"ue) replace `/` with `-` )"
		End With
	End With
	With .Items
		.AddItem(#1/1/2001 10:00:00 AM#)
		.AddItem(#1/2/2001 10:00:00 AM#)
	End With
End With
843
How can I remove all bars from the chart
With Exgantt1
	.Columns.Add("Task")
	.Chart.FirstVisibleDate = #1/1/2001#
	With .Items
		.AddBar(.AddItem("Task 1"),"Task",#1/2/2001#,#1/4/2001#,"K1")
		.AddBar(.AddItem("Task 2"),"Task",#1/2/2001#,#1/4/2001#,"K1")
		.AddBar(.AddItem("Task 3"),"Task",#1/2/2001#,#1/4/2001#,"K1")
		.AddBar(.AddItem("Task 4"),"Task",#1/2/2001#,#1/4/2001#,"K2")
		.ClearBars(0)
	End With
End With
842
How can I change the color for all bars with a specified key

With Exgantt1
	.Columns.Add("Task")
	.Chart.FirstVisibleDate = #1/1/2001#
	With .Items
		.AddBar(.AddItem("Task 1"),"Task",#1/2/2001#,#1/4/2001#,"K1")
		.AddBar(.AddItem("Task 2"),"Task",#1/2/2001#,#1/4/2001#,"K1")
		.AddBar(.AddItem("Task 3"),"Task",#1/2/2001#,#1/4/2001#,"K1")
		.AddBar(.AddItem("Task 4"),"Task",#1/2/2001#,#1/4/2001#,"K2")
		.set_ItemBar(0,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarColor,255)
	End With
End With
841
Is there any automatic way to change a property for all bars with a specified key

With Exgantt1
	.Columns.Add("Task")
	.Chart.FirstVisibleDate = #1/1/2001#
	With .Items
		.AddBar(.AddItem("Task 1"),"Task",#1/2/2001#,#1/4/2001#,"K1")
		.AddBar(.AddItem("Task 2"),"Task",#1/2/2001#,#1/4/2001#,"K1")
		.AddBar(.AddItem("Task 3"),"Task",#1/2/2001#,#1/4/2001#,"K1")
		.AddBar(.AddItem("Task 4"),"Task",#1/2/2001#,#1/4/2001#,"K2")
		.set_ItemBar(0,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarColor,255)
	End With
End With
840
How can I remove all bars with specified key

With Exgantt1
	.Columns.Add("Task")
	.Chart.FirstVisibleDate = #1/1/2001#
	With .Items
		.AddBar(.AddItem("Task 1"),"Task",#1/2/2001#,#1/4/2001#,"K1")
		.AddBar(.AddItem("Task 2"),"Task",#1/2/2001#,#1/4/2001#,"K1")
		.AddBar(.AddItem("Task 3"),"Task",#1/2/2001#,#1/4/2001#,"K1")
		.AddBar(.AddItem("Task 4"),"Task",#1/2/2001#,#1/4/2001#,"K2")
		.RemoveBar(0,"K1")
	End With
End With
839
How can I find if there is any filter applied to the control

' FilterChange event - Occurs when the filter was changed.
Private Sub Exgantt1_FilterChange(ByVal sender As System.Object) Handles Exgantt1.FilterChange
	With Exgantt1
		Debug.Print( "If negative, the filter is present, else not" )
		Debug.Print( .Items.VisibleItemCount )
	End With
End Sub

Dim h
With Exgantt1
	.BeginUpdate()
	.LinesAtRoot = exontrol.EXGANTTLib.LinesAtRootEnum.exLinesAtRoot
	.TreeColumnIndex = -1
	.FilterInclude = exontrol.EXGANTTLib.FilterIncludeEnum.exMatchingItemsOnly
	With .Columns.Add("Column")
		.DisplayFilterButton = True
		.FilterType = exontrol.EXGANTTLib.FilterTypeEnum.exFilter
		.Filter = "C1"
	End With
	With .Items
		h = .AddItem("R1")
		.InsertItem(h,Nothing,"C1")
		.InsertItem(h,Nothing,"C2")
		.set_ExpandItem(h,True)
		h = .AddItem("R2")
		.InsertItem(h,Nothing,"C1")
		.InsertItem(h,Nothing,"C2")
	End With
	.ApplyFilter()
	.EndUpdate()
End With
838
How can I prevent showing the lines for the hierarchy while using the exMatchingItemsOnly option

Dim h
With Exgantt1
	.BeginUpdate()
	.LinesAtRoot = exontrol.EXGANTTLib.LinesAtRootEnum.exLinesAtRoot
	.TreeColumnIndex = -1
	.FilterInclude = exontrol.EXGANTTLib.FilterIncludeEnum.exMatchingItemsOnly
	With .Columns.Add("Column")
		.DisplayFilterButton = True
		.FilterType = exontrol.EXGANTTLib.FilterTypeEnum.exFilter
		.Filter = "C1|C2"
	End With
	With .Items
		h = .AddItem("R1")
		.InsertItem(h,Nothing,"C1")
		.InsertItem(h,Nothing,"C2")
		.set_ExpandItem(h,True)
		h = .AddItem("R2")
		.InsertItem(h,Nothing,"C1")
		.InsertItem(h,Nothing,"C2")
	End With
	.ApplyFilter()
	.EndUpdate()
End With
837
Is there any method to get only the matched items and not the items with his parent

Dim h
With Exgantt1
	.BeginUpdate()
	.LinesAtRoot = exontrol.EXGANTTLib.LinesAtRootEnum.exLinesAtRoot
	.FilterInclude = exontrol.EXGANTTLib.FilterIncludeEnum.exMatchingItemsOnly
	With .Columns.Add("Column")
		.DisplayFilterButton = True
		.FilterType = exontrol.EXGANTTLib.FilterTypeEnum.exFilter
		.Filter = "C1|C2"
	End With
	With .Items
		h = .AddItem("R1")
		.InsertItem(h,Nothing,"C1")
		.InsertItem(h,Nothing,"C2")
		.set_ExpandItem(h,True)
		h = .AddItem("R2")
		.InsertItem(h,Nothing,"C1")
		.InsertItem(h,Nothing,"C2")
	End With
	.ApplyFilter()
	.EndUpdate()
End With
836
Is there any property I can save and restore automatically the current setting, column position, size, and so on (2)

With Exgantt1
	.BeginUpdate()
	.Columns.Add("Column")
	With .Items
		.AddItem("Item 1")
		.AddItem("Item 2")
		.AddItem("Item 3")
	End With
	.Layout = "Select=""0"";SingleSort=""C0:2"";Columns=1"
	.EndUpdate()
End With
835
Is there any property I can save and restore automatically the current setting, column position, size, and so on (1)

With Exgantt1
	.BeginUpdate()
	.Columns.Add("Column")
	With .Items
		.AddItem("Item 1")
		.AddItem("Item 2")
		.AddItem("Item 3")
	End With
	.Layout = "gBjAAwAAuABmABpABsAB0ABlAByhoAPIAOEPAA9gYABoABQAgUEg0XN4AOcJicKkpujMbjsfkMFk0YhkQgUOjUEl8gjcGO0ok8KMULjEaGMcj08kQAO8oMkTNEtGwAG" & _
"QAqc7gUlhh1ABtAEsk9GpEfhElgVcsMupNlnlonlaAFcr0shUsp8QPEtnVJqJhmcIhUMh0QiU5sYAqMngUSuEMw07k8Qv0SgVRrNEuVflF2jF5x9JyNEm0TjQijemyE0" & _
"jE3t+YruauoAu4Az1qj9BzRn0UzksSnAA0xDjY6qnAw8OiUQ0dwzN0zWz2t7j8/xURAGNvWH6k8xlEhklhEI0O/6QAgI="
	.EndUpdate()
End With
834
I have noticed that the column's header is changed once the cursor hovers it. Is it possible to change that visual appearance

With Exgantt1
	.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
	With .Columns
		.Add("Column 1")
		.Add("Column 2")
	End With
	.BackColorHeader32 = &H1000000
	.set_Background32(exontrol.EXGANTTLib.BackgroundPartEnum.exCursorHoverColumn,&H12d86ff)
End With
833
Is it possible to change the visual appearance of the columns selector/floating bar(3)

With Exgantt1
	.ColumnAutoResize = False
	With .Columns
		.Add("Column 1")
		.Add("Column 2").Visible = False
	End With
	.VisualAppearance.Add(2,"c:\exontrol\images\normal.ebn")
	.VisualAppearance.Add(3,"c:\exontrol\images\pushed.ebn")
	.set_Background32(exontrol.EXGANTTLib.BackgroundPartEnum.exColumnsFloatAppearance,&H2000000)
	.set_Background32(exontrol.EXGANTTLib.BackgroundPartEnum.exColumnsFloatBackColor,&H3000000)
	.set_Background(exontrol.EXGANTTLib.BackgroundPartEnum.exColumnsFloatCaptionBackColor,Color.FromArgb(246,245,240))
	.ColumnsFloatBarVisible = exontrol.EXGANTTLib.ColumnsFloatBarVisibleEnum.exColumnsFloatBarVisibleIncludeHiddenColumns
End With
832
Is it possible to change the visual appearance of the columns selector/floating bar(2)

With Exgantt1
	.ColumnAutoResize = False
	With .Columns
		.Add("Column 1")
		.Add("Column 2").Visible = False
	End With
	.VisualAppearance.Add(3,"c:\exontrol\images\pushed.ebn")
	.set_Background32(exontrol.EXGANTTLib.BackgroundPartEnum.exColumnsFloatBackColor,&H3000000)
	.ColumnsFloatBarVisible = exontrol.EXGANTTLib.ColumnsFloatBarVisibleEnum.exColumnsFloatBarVisibleIncludeHiddenColumns
End With
831
Is it possible to change the visual appearance of the columns selector/floating bar(1)

With Exgantt1
	.VisualAppearance.Add(2,"c:\exontrol\images\normal.ebn")
	.set_Background32(exontrol.EXGANTTLib.BackgroundPartEnum.exColumnsFloatAppearance,&H2000000)
	.set_Background(exontrol.EXGANTTLib.BackgroundPartEnum.exColumnsFloatBackColor,Color.FromArgb(246,245,240))
	.set_Background(exontrol.EXGANTTLib.BackgroundPartEnum.exColumnsFloatCaptionBackColor,Color.FromArgb(246,245,240))
	.ColumnsFloatBarVisible = exontrol.EXGANTTLib.ColumnsFloatBarVisibleEnum.exColumnsFloatBarVisibleIncludeHiddenColumns
End With
830
I am using the ColumnsFloatBarVisible property on True, but still not able to add any column on that list

With Exgantt1
	.ColumnAutoResize = False
	With .Columns
		.Add("Column 1")
		.Add("Column 2").Visible = False
	End With
	.ColumnsFloatBarVisible = exontrol.EXGANTTLib.ColumnsFloatBarVisibleEnum.exColumnsFloatBarVisibleIncludeHiddenColumns
End With
829
Is it possible to list a column to columns selector/floating bar, but still user can use it

With Exgantt1
	.ColumnAutoResize = False
	With .Columns
		.Add("Column 1")
		.Add("Column 2").Visible = False
		With .Add("Column 3")
			.Visible = False
			.Enabled = False
		End With
	End With
	.ColumnsFloatBarVisible = exontrol.EXGANTTLib.ColumnsFloatBarVisibleEnum.exColumnsFloatBarVisibleIncludeHiddenColumns
End With
828
How can I prevent a specific column not to be listed in the columns selector/floating bar

With Exgantt1
	.ColumnAutoResize = False
	With .Columns
		.Add("Column 1")
		.Add("Column 2").Visible = False
		With .Add("Column 3")
			.Visible = False
			.AllowDragging = False
		End With
	End With
	.ColumnsFloatBarVisible = exontrol.EXGANTTLib.ColumnsFloatBarVisibleEnum.exColumnsFloatBarVisibleIncludeHiddenColumns
End With
827
Is it possible to change the "Columns" caption being shown in the columns selector/floating bar

With Exgantt1
	.ColumnAutoResize = False
	With .Columns
		.Add("Column 1")
		.Add("Column 2").Visible = False
	End With
	.set_Description(exontrol.EXGANTTLib.DescriptionTypeEnum.exColumnsFloatBar,"Hidden Columns")
	.ColumnsFloatBarVisible = exontrol.EXGANTTLib.ColumnsFloatBarVisibleEnum.exColumnsFloatBarVisibleIncludeHiddenColumns
End With
826
How can I show the columns selector, so the user can drag and drop columns to the view

With Exgantt1
	.ColumnAutoResize = False
	With .Columns
		.Add("Column 1")
		.Add("Column 2").Visible = False
	End With
	.ColumnsFloatBarVisible = exontrol.EXGANTTLib.ColumnsFloatBarVisibleEnum.exColumnsFloatBarVisibleIncludeHiddenColumns
End With
825
The column's header is changed while the cursor hovers it. Is it possible to prevent that

With Exgantt1
	With .Columns
		.Add("Column 1")
		.Add("Column 2")
	End With
	.set_Background32(exontrol.EXGANTTLib.BackgroundPartEnum.exCursorHoverColumn,-1)
End With
824
How do I enable the scrollbar-extension, as thumb to be shown outside of the control's client area

With Exgantt1
	.BeginUpdate()
	.ScrollBars = exontrol.EXGANTTLib.ScrollBarsEnum.exDisableBoth
	.Chart.ToolTip = ""
	.set_ScrollPartVisible(exontrol.EXGANTTLib.ScrollBarEnum.exVScroll,exontrol.EXGANTTLib.ScrollPartEnum.exExtentThumbPart,True)
	.set_ScrollPartVisible(exontrol.EXGANTTLib.ScrollBarEnum.exHScroll,exontrol.EXGANTTLib.ScrollPartEnum.exExtentThumbPart,True)
	.set_ScrollPartVisible(exontrol.EXGANTTLib.ScrollBarEnum.exHChartScroll,exontrol.EXGANTTLib.ScrollPartEnum.exExtentThumbPart,True)
	.ScrollWidth = 4
	.set_Background(exontrol.EXGANTTLib.BackgroundPartEnum.exVSBack,Color.FromArgb(240,240,240))
	.set_Background(exontrol.EXGANTTLib.BackgroundPartEnum.exVSThumb,Color.FromArgb(128,128,128))
	.ScrollHeight = 4
	.set_Background(exontrol.EXGANTTLib.BackgroundPartEnum.exHSBack,.get_Background(exontrol.EXGANTTLib.BackgroundPartEnum.exVSBack))
	.set_Background(exontrol.EXGANTTLib.BackgroundPartEnum.exHSThumb,.get_Background(exontrol.EXGANTTLib.BackgroundPartEnum.exVSThumb))
	.set_Background(exontrol.EXGANTTLib.BackgroundPartEnum.exScrollSizeGrip,.get_Background(exontrol.EXGANTTLib.BackgroundPartEnum.exVSBack))
	.EndUpdate()
End With
823
How can I display the Year in Thai, Buddhist, Korean format

With Exgantt1
	With .Chart
		.FirstWeekDay = .LocFirstWeekDay
		.MonthNames = .LocMonthNames
		.WeekDays = .LocWeekDays
		.AMPM = .LocAMPM
		.LevelCount = 2
		.set_PaneWidth(False,0)
		.UnitScale = exontrol.EXGANTTLib.UnitEnum.exDay
		With .get_Level(0)
			.Label = "<%mmmm%> <%d%>, <%loc_yyyy%> <r><%ww%>"
			.Unit = exontrol.EXGANTTLib.UnitEnum.exWeek
			.ToolTip = .Label
		End With
		.ToolTip = "<%ddd%> <%m%>/<%d%>/<%loc_yyyy%>"
	End With
	.set_Description(exontrol.EXGANTTLib.DescriptionTypeEnum.exFilterBarDateMonths,.Chart.MonthNames)
End With
822
How does localization work

With Exgantt1
	With .Chart
		.FirstWeekDay = .LocFirstWeekDay
		.MonthNames = .LocMonthNames
		.WeekDays = .LocWeekDays
		.AMPM = .LocAMPM
		.LevelCount = 2
		.set_PaneWidth(False,0)
	End With
End With
821
How can I have a case-insensitive filter (exFilterDoCaseSensitive flag is not set)

With Exgantt1
	.BeginUpdate()
	.Chart.set_PaneWidth(True,0)
	.MarkSearchColumn = False
	With .Columns
		With .Add("Car")
			.DisplayFilterButton = True
			.FilterType = exontrol.EXGANTTLib.FilterTypeEnum.exFilter
			.Filter = "MAZDA"
		End With
		With .Add("Equipment")
			.DisplayFilterButton = True
			.DisplayFilterPattern = False
			.CustomFilter = "Air Bag||*Air Bag*|||Air condition||*Air condition*|||ABS||*ABS*|||ESP||*ESP*"
			.FilterType = exontrol.EXGANTTLib.FilterTypeEnum.exPattern
			.Filter = "AIR BAG"
		End With
	End With
	With .Items
		.set_CellCaption(.AddItem("Mazda"),1,"Air Bag")
		.set_CellCaption(.AddItem("Toyota"),1,"Air Bag,Air condition")
		.set_CellCaption(.AddItem("Ford"),1,"Air condition")
		.set_CellCaption(.AddItem("Nissan"),1,"Air Bag,ABS,ESP")
		.set_CellCaption(.AddItem("Mazda"),1,"Air Bag, ABS,ESP")
		.set_CellCaption(.AddItem("Mazda"),1,"ABS,ESP")
	End With
	.ApplyFilter()
	.EndUpdate()
End With
820
How can I have a case-sensitive filter

With Exgantt1
	.BeginUpdate()
	.Chart.set_PaneWidth(True,0)
	.MarkSearchColumn = False
	With .Columns
		With .Add("Car")
			.DisplayFilterButton = True
			.FilterType = exontrol.EXGANTTLib.FilterTypeEnum.exFilterDoCaseSensitive Or exontrol.EXGANTTLib.FilterTypeEnum.exFilter
			.Filter = "Mazda"
		End With
		With .Add("Equipment")
			.DisplayFilterButton = True
			.DisplayFilterPattern = False
			.CustomFilter = "Air Bag||*Air Bag*|||Air condition||*Air condition*|||ABS||*ABS*|||ESP||*ESP*"
			.FilterType = exontrol.EXGANTTLib.FilterTypeEnum.exFilterDoCaseSensitive Or exontrol.EXGANTTLib.FilterTypeEnum.exPattern
			.Filter = "Air Bag"
		End With
	End With
	With .Items
		.set_CellCaption(.AddItem("Mazda"),1,"Air Bag")
		.set_CellCaption(.AddItem("Toyota"),1,"Air Bag,Air condition")
		.set_CellCaption(.AddItem("Ford"),1,"Air condition")
		.set_CellCaption(.AddItem("Nissan"),1,"Air Bag,ABS,ESP")
		.set_CellCaption(.AddItem("Mazda"),1,"Air Bag, ABS,ESP")
		.set_CellCaption(.AddItem("Mazda"),1,"ABS,ESP")
	End With
	.ApplyFilter()
	.EndUpdate()
End With
819
I am using the FormatColumn/FormatCell to format my columns. Is it possible to ignore the SelForeColor, so the foreground color for selected items does not override my settings

' SelectionChanged event - Fired after a new item has been selected.
Private Sub Exgantt1_SelectionChanged(ByVal sender As System.Object) Handles Exgantt1.SelectionChanged
	With Exgantt1
		With .Items
			.ClearItemBackColor(0)
			.set_ItemBackColor(.get_SelectedItem(0),Color.FromArgb(128,255,255))
		End With
	End With
End Sub

With Exgantt1
	.BeginUpdate()
	.MarkSearchColumn = False
	.SelForeColor = .ForeColor
	.SelBackColor = .BackColor
	.ShowFocusRect = False
	With .Columns
		With .Add("Format")
			.FormatColumn = "type(value) in (0,1) ? 'null' : ( dbl(value)<0 ? '<fgcolor=FF0000>'+ (value format '2|.|3|,|1' ) : (dbl(value)>0 ? '<fgcolor=00" & _
"00FF>+'+(value format '2|.|3|,' ): '0.00') )"
			.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellCaptionFormat,1)
		End With
	End With
	With .Items
		.AddItem(10)
		.AddItem(-8)
	End With
	.EndUpdate()
End With
818
How do I hide the selection
With Exgantt1
	.BeginUpdate()
	.MarkSearchColumn = False
	.SelForeColor = .ForeColor
	.SelBackColor = .BackColor
	.ShowFocusRect = False
	With .Columns
		With .Add("Format")
			.FormatColumn = "type(value) in (0,1) ? 'null' : ( dbl(value)<0 ? '<fgcolor=FF0000>'+ (value format '2|.|3|,|1' ) : (dbl(value)>0 ? '<fgcolor=00" & _
"00FF>+'+(value format '2|.|3|,' ): '0.00') )"
			.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellCaptionFormat,1)
		End With
	End With
	With .Items
		.AddItem(10)
		.AddItem(-8)
	End With
	.EndUpdate()
End With
817
How do I access the cells, or how do I get the values in the columns
Dim h
With Exgantt1
	With .Columns
		.Add("C1")
		.Add("C2")
		.Add("C3")
	End With
	With .Items
		h = .AddItem("Item 1")
		.set_CellCaption(h,1,"SubItem 1.1")
		.set_CellCaption(h,2,"SubItem 1.2")
		Debug.Print( .get_CellCaption(h,2) )
	End With
End With
816
How can I change the check-boxes appearance

Dim h
With Exgantt1
	.LinesAtRoot = exontrol.EXGANTTLib.LinesAtRootEnum.exLinesAtRoot
	With .Columns.Add("Default")
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellHasCheckBox,True)
		.PartialCheck = True
	End With
	With .Items
		h = .AddItem("Root")
		.InsertItem(h,Nothing,"Child 1")
		.InsertItem(h,Nothing,"Child 2")
		.set_ExpandItem(h,True)
	End With
	With .VisualAppearance
		.Add(1,"XP:Button 3 12")
		.Add(2,"XP:Button 3 11")
		.Add(3,"XP:Button 3 10")
	End With
	.set_CheckImage(exontrol.EXGANTTLib.CheckStateEnum.Unchecked,16777216)
	.set_CheckImage(exontrol.EXGANTTLib.CheckStateEnum.Checked,33554432)
	.set_CheckImage(exontrol.EXGANTTLib.CheckStateEnum.PartialChecked,50331648)
End With
815
How can I load my table from an Access 2007, using ADO

' AddItem event - Occurs after a new Item has been inserted to Items collection.
Private Sub Exgantt1_AddItem(ByVal sender As System.Object,ByVal Item As Integer) Handles Exgantt1.AddItem
	With Exgantt1
		With .Items
			.AddBar(Item,"Task",.get_CellCaption(Item,2),.get_CellCaption(Item,4))
		End With
	End With
End Sub

Dim rs
With Exgantt1
	.BeginUpdate()
	With .Chart
		.FirstVisibleDate = #8/3/1994#
		.set_PaneWidth(False,256)
		.LevelCount = 2
		.UnitScale = exontrol.EXGANTTLib.UnitEnum.exDay
		.FirstWeekDay = exontrol.EXGANTTLib.WeekDayEnum.exMonday
		.OverviewVisible = exontrol.EXGANTTLib.OverviewVisibleEnum.exOverviewShowAll
	End With
	.ColumnAutoResize = False
	.ContinueColumnScroll = False
	rs = New ADODB.Recordset()
	With rs
		.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\sample.accdb",3,3)
	End With
	.DataSource = rs
	.EndUpdate()
End With
814
Is it possible display numbers in the same format no matter of regional settings in the control panel

Dim h
With Exgantt1
	.BeginUpdate()
	.Columns.Add("Def").set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellCaptionFormat,1)
	With .Items
		h = .AddItem(666666.27)
		.set_FormatCell(h,0,"(value format '') +  ' <fgcolor=808080>(default positive)'")
		h = .AddItem(666666.27)
		.set_FormatCell(h,0,"(value format '2|.|3|,|1|1')")
		h = .AddItem(-666666.27)
		.set_FormatCell(h,0,"(value format '') +  ' <fgcolor=808080>(default negative)'")
		h = .AddItem(-666666.27)
		.set_FormatCell(h,0,"(value format '2|.|3|,|1|1')")
	End With
	.EndUpdate()
End With
813
The right pane needs to show ONLY the hours 6am to 9pm (every hour) for one day only and the user should not to be able to scroll left or right nor see any other hours. How can I do that

With Exgantt1
	.BeginUpdate()
	.Columns.Add("Tasks")
	With .Chart
		.LevelCount = 2
		.set_ScrollRange(exontrol.EXGANTTLib.ScrollRangeEnum.exStartDate,#1/1/2001#)
		.set_ScrollRange(exontrol.EXGANTTLib.ScrollRangeEnum.exEndDate,#1/1/2001#)
		.UnitScale = exontrol.EXGANTTLib.UnitEnum.exHour
		.NonworkingHours = 12582975
		.ShowNonworkingUnits = False
		.get_Level(0).Alignment = exontrol.EXGANTTLib.AlignmentEnum.exHOutside Or exontrol.EXGANTTLib.AlignmentEnum.CenterAlignment
		.UnitWidth = 18
		.set_PaneWidth(True,294)
		.ScrollBar = False
	End With
	.OnResizeControl = exontrol.EXGANTTLib.OnResizeControlEnum.exDisableSplitter
	.EndUpdate()
End With
812
Can I use ebn files to display the selected dates

With Exgantt1
	.BeginUpdate()
	With .VisualAppearance
		.Add(2,"c:\exontrol\images\normal.ebn")
		.Add(1,"CP:2 0 -4 0 4")
	End With
	With .Chart
		.FirstVisibleDate = #1/1/2008#
		.MarkTodayColor = .BackColor
		.LevelCount = 2
		.MarkSelectDateColor32 = &H1000000
		.SelectLevel = 1
		.set_SelectDate(#1/3/2008#,True)
		.set_SelectDate(#1/4/2008#,True)
	End With
	.Columns.Add("Default")
	With .Items
		.AddBar(.AddItem("Item 1"),"Task",#1/2/2008#,#1/6/2008#)
		.AddBar(.AddItem("Item 2"),"Task",#1/3/2008#,#1/7/2008#)
		.AddBar(.AddItem("Item 3"),"Task",#1/4/2008#,#1/8/2008#)
		.AddBar(.AddItem("Item 4"),"Task",#1/5/2008#,#1/9/2008#)
	End With
	.EndUpdate()
End With
811
Can I use ebn files to display the selected dates

With Exgantt1
	.BeginUpdate()
	.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
	With .Chart
		.FirstVisibleDate = #1/1/2008#
		.MarkTodayColor = .BackColor
		.LevelCount = 2
		.MarkSelectDateColor32 = &H1000000
		.SelectLevel = 1
		.set_SelectDate(#1/3/2008#,True)
	End With
	.Columns.Add("Default")
	With .Items
		.AddBar(.AddItem("Item 1"),"Task",#1/2/2008#,#1/6/2008#)
		.AddBar(.AddItem("Item 2"),"Task",#1/3/2008#,#1/7/2008#)
		.AddBar(.AddItem("Item 3"),"Task",#1/4/2008#,#1/8/2008#)
	End With
	.EndUpdate()
End With
810
How can I change the color for selected dates to be solid

With Exgantt1
	.BeginUpdate()
	With .Chart
		.set_PaneWidth(False,0)
		.FirstVisibleDate = #1/1/2008#
		.MarkTodayColor = .BackColor
		.LevelCount = 2
		.MarkSelectDateColor32 = &H7fff0000
		.SelectLevel = 1
		.set_SelectDate(#1/15/2008#,True)
		.set_SelectDate(#1/16/2008#,True)
	End With
	.EndUpdate()
End With
809
How can I add or change the padding (spaces) for captions in the control's header

With Exgantt1
	.BeginUpdate()
	.Chart.set_PaneWidth(True,0)
	.Columns.Add("Padding-Left").set_Def(exontrol.EXGANTTLib.DefColumnEnum.exHeaderPaddingLeft,18)
	With .Columns.Add("Padding-Right")
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exHeaderPaddingRight,18)
		.HeaderAlignment = exontrol.EXGANTTLib.AlignmentEnum.RightAlignment
	End With
	.EndUpdate()
End With
808
Do you have any plans to add cell spacing and cell padding to the cells

With Exgantt1
	.BeginUpdate()
	.Chart.set_PaneWidth(True,0)
	.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exAllLines
	With .Columns.Add("Padding-Left")
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellHasCheckBox,True)
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellPaddingLeft,18)
	End With
	.Columns.Add("No-Padding").set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellHasCheckBox,True)
	.Columns.Add("Empty").Position = 0
	With .Items
		.set_CellCaption(.AddItem("Item A.1"),1,"Item A.2")
		.set_CellCaption(.AddItem("Item B.1"),1,"Item B.2")
		.set_CellCaption(.AddItem("Item C.1"),1,"Item C.2")
	End With
	.EndUpdate()
End With
807
Is it possible to display information about the firing events
' Event event - Notifies the application once the control fires an event.
Private Sub Exgantt1_Event(ByVal sender As System.Object,ByVal EventID As Integer) Handles Exgantt1.Event
	With Exgantt1
		Debug.Print( .get_EventParam(-2) )
	End With
End Sub


806
Is it possible to scroll the control's content by clicking and moving the mouse up or down

' AddItem event - Occurs after a new Item has been inserted to Items collection.
Private Sub Exgantt1_AddItem(ByVal sender As System.Object,ByVal Item As Integer) Handles Exgantt1.AddItem
	With Exgantt1
		With .Items
			.AddBar(Item,"Task",.get_CellCaption(Item,2),.get_CellCaption(Item,4))
		End With
	End With
End Sub

Dim rs
With Exgantt1
	.BeginUpdate()
	With .Chart
		.FirstVisibleDate = #8/3/1994#
		.set_PaneWidth(False,256)
		.LevelCount = 2
		.UnitScale = exontrol.EXGANTTLib.UnitEnum.exDay
		.FirstWeekDay = exontrol.EXGANTTLib.WeekDayEnum.exMonday
		.OverviewVisible = exontrol.EXGANTTLib.OverviewVisibleEnum.exOverviewShowAll
	End With
	.ColumnAutoResize = False
	.ContinueColumnScroll = False
	rs = New ADODB.Recordset()
	With rs
		.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\SAMPLE.MDB",3,3)
	End With
	.DataSource = rs
	.AutoDrag = exontrol.EXGANTTLib.AutoDragEnum.exAutoDragScroll
	.EndUpdate()
End With
805
How do I load bars from my ADO table/database

' AddItem event - Occurs after a new Item has been inserted to Items collection.
Private Sub Exgantt1_AddItem(ByVal sender As System.Object,ByVal Item As Integer) Handles Exgantt1.AddItem
	With Exgantt1
		With .Items
			.AddBar(Item,"Task",.get_CellCaption(Item,2),.get_CellCaption(Item,4))
		End With
	End With
End Sub

Dim rs
With Exgantt1
	.BeginUpdate()
	With .Chart
		.FirstVisibleDate = #8/3/1994#
		.set_PaneWidth(False,256)
		.LevelCount = 2
		.UnitScale = exontrol.EXGANTTLib.UnitEnum.exDay
		.FirstWeekDay = exontrol.EXGANTTLib.WeekDayEnum.exMonday
		.OverviewVisible = exontrol.EXGANTTLib.OverviewVisibleEnum.exOverviewShowAll
	End With
	.ColumnAutoResize = False
	.ContinueColumnScroll = False
	rs = New ADODB.Recordset()
	With rs
		.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\SAMPLE.MDB",3,3)
	End With
	.DataSource = rs
	.EndUpdate()
End With
804
Is it possible to auto-numbering the children items but still keeps the position after filtering

Dim h
With Exgantt1
	.BeginUpdate()
	.Chart.set_PaneWidth(True,0)
	.LinesAtRoot = exontrol.EXGANTTLib.LinesAtRootEnum.exLinesAtRoot
	With .Columns.Add("Items")
		.DisplayFilterButton = True
		.FilterType = exontrol.EXGANTTLib.FilterTypeEnum.exFilter
		.Filter = "Child 2"
	End With
	With .Columns.Add("Pos.1")
		.FormatColumn = "1 ropos ''"
		.Position = 0
		.Width = 32
		.AllowSizing = False
	End With
	With .Columns.Add("Pos.2")
		.FormatColumn = "1 ropos ':'"
		.Position = 1
		.Width = 32
		.AllowSizing = False
	End With
	With .Columns.Add("Pos.3")
		.FormatColumn = "1 ropos ':|A-Z'"
		.Position = 2
		.Width = 32
		.AllowSizing = False
	End With
	With .Columns.Add("Pos.4")
		.FormatColumn = "1 ropos '|A-Z|'"
		.Position = 3
		.Width = 32
		.AllowSizing = False
	End With
	With .Columns.Add("Pos.5")
		.FormatColumn = "'<font Tahoma;7>' + 1 ropos '-<b>||A-Z'"
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellCaptionFormat,1)
		.Position = 4
		.Width = 32
		.AllowSizing = False
	End With
	With .Columns.Add("Pos.6")
		.FormatColumn = "'<b>'+ 1 ropos '</b>:<fgcolor=FF0000>|A-Z|'"
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellCaptionFormat,1)
		.Position = 5
		.Width = 48
		.AllowSizing = False
	End With
	With .Items
		h = .AddItem("Root 1")
		.InsertItem(h,Nothing,"Child 1")
		.InsertItem(h,Nothing,"Child 2")
		.set_ExpandItem(h,True)
		h = .AddItem("Root 2")
		.InsertItem(h,Nothing,"Child 1")
		.InsertItem(h,Nothing,"Child 2")
	End With
	.ApplyFilter()
	.EndUpdate()
End With
803
Is it possible to auto-numbering the children items too

Dim h
With Exgantt1
	.BeginUpdate()
	.Chart.set_PaneWidth(True,0)
	.LinesAtRoot = exontrol.EXGANTTLib.LinesAtRootEnum.exLinesAtRoot
	.Columns.Add("Items")
	With .Columns.Add("Pos.1")
		.FormatColumn = "1 rpos ''"
		.Position = 0
		.Width = 32
		.AllowSizing = False
	End With
	With .Columns.Add("Pos.2")
		.FormatColumn = "1 rpos ':'"
		.Position = 1
		.Width = 32
		.AllowSizing = False
	End With
	With .Columns.Add("Pos.3")
		.FormatColumn = "1 rpos ':|A-Z'"
		.Position = 2
		.Width = 32
		.AllowSizing = False
	End With
	With .Columns.Add("Pos.4")
		.FormatColumn = "1 rpos '|A-Z|'"
		.Position = 3
		.Width = 32
		.AllowSizing = False
	End With
	With .Columns.Add("Pos.5")
		.FormatColumn = "'<font Tahoma;7>' + 1 rpos '-<b>||A-Z'"
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellCaptionFormat,1)
		.Position = 4
		.Width = 32
		.AllowSizing = False
	End With
	With .Columns.Add("Pos.6")
		.FormatColumn = "'<b>'+ 1 rpos '</b>:<fgcolor=FF0000>|A-Z|'"
		.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellCaptionFormat,1)
		.Position = 5
		.Width = 48
		.AllowSizing = False
	End With
	With .Items
		h = .AddItem("Root 1")
		.InsertItem(h,Nothing,"Child 1")
		.InsertItem(h,Nothing,"Child 2")
		.set_ExpandItem(h,True)
		h = .AddItem("Root 2")
		.InsertItem(h,Nothing,"Child 1")
		.InsertItem(h,Nothing,"Child 2")
	End With
	.EndUpdate()
End With
802
Is there any way to add auto-numbering

With Exgantt1
	With .Columns
		.Add("Items")
		With .Add("Pos")
			.FormatColumn = "1 pos ''"
			.Position = 0
		End With
	End With
	With .Items
		.AddItem("Item 1")
		.AddItem("Item 2")
		.AddItem("Item 3")
	End With
End With
801
How can I format my column to display the percent values “5,00%”

With Exgantt1
	.Columns.Add("Percent").FormatColumn = "((dbl(value) * 100) format '2|,|3.')+'%'"
	With .Items
		.AddItem(0.5)
		.AddItem(0.4)
		.AddItem(0.75)
	End With
End With